/**
 * 图像处理
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiImage {

  getFolderList(parms) {
    return ApiBase.send(Urls.URL_FOLDER_LIST,parms);
  }

  getItemFolderList(params) {
    return ApiBase.send(Urls.URL_ITEM_FOLDER_LIST, params);
  }
  createFolder(parms) {
    return ApiBase.send(Urls.URL_CREATE_FOLDER,parms);
  }

  getFolderListByParentId(parms) {
    return ApiBase.send(Urls.URL_GET_FOLDER_LIST_BY_PARENT_ID,parms);
  }
  deleteFolderOrImages(parms) {
    return ApiBase.send(Urls.URL_DELETE,parms);
  }

  getUploadToOssUrl() {
    return Urls.URL_UPLOAD_IMAGE;
  }
  getUploadSingleImageUrl() {
    return Urls.URL_UPLOAD_SINGLE_IMG;
  }
  uploadMessagePic() {
    return Urls.URL_UPLOAD_MESSAGE_PIC;
  }
}
export  default  ApiImage
